$headMenuHeight:45px; // 顶部菜单栏的高度

#app {


  // 主体区域
  .main-container {
    min-height: 100%;
    transition: margin-left .28s;
    margin-left: 210px;
    // width: calc(100% - 36px);
  }
// 替换element样式，让菜单栏的高度更小些，可以容纳更多内容
  .el-submenu__title {
    height: 35px;
    line-height: 35px;
    // padding: 3px 3px 3px 10px !important;
    position: relative;
    -webkit-box-sizing: border-box;
    white-space: nowrap;
    list-style: none;
  }

  .el-menu-item, .el-submenu__title {
      height: 35px;
      line-height: 35px;
      // padding: 3px 3px 3px 10px !important;
      position: relative;
      -webkit-box-sizing: border-box;
      white-space: nowrap;
      list-style: none;
  }

  // 侧边栏
  .sidebar-container {
    transition: width 0.28s;
    width: 210px !important;
    height: 100%;
    background-color:#0A5DBA;
    // position: fixed;
    font-size: 0px;
    // top: $headMenuHeight;
    bottom: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;



    .el-submenu__title i{
      width:7px;
      height:4px;
      color: #fff;
      font-weight: bold;
    }

    //reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }
    .scrollbar-wrapper {
      height: calc(100% + 15px);
      .el-scrollbar__view {
        height: 100%;
      }

    }
    .is-horizontal {
      display: none;
    }
    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }
    .svg-icon {
      margin-right: 5px;
    }
    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }
  }
  .hideSidebar {
    .sidebar-container {
      width: 46px !important;
    }
    .main-container {
      margin-left: 46px;
    }
    .submenu-title-noDropdown {
      padding-left: 10px !important;
      position: relative;
      .el-tooltip {
        padding: 0 10px !important;
      }
      &:hover {
        background-color: $menuHover !important;
        color: $menuHoverFontColor !important;
      }
    }

    .el-submenu {
      overflow: hidden;
      &>.el-submenu__title {
        padding-left: 10px !important;
        background-color: #0A5DBA!important;
        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }
    .el-menu--collapse {
      .el-submenu {
        &>.el-submenu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }
  .sidebar-container .nest-menu .el-submenu>.el-submenu__title,
  .sidebar-container .el-submenu .el-menu-item {
    min-width: 180px !important;
    background-color: $subMenuBg !important;
    &:hover {
      background-color: $menuHover !important;
      color: $menuHoverFontColor !important;
    }
  }
  .sidebar-container .el-submenu__title {
    background-color: $subMenuBg !important;
    color: $letMenuColor !important;
    font-size: $letMenuFontSize;
    &:hover {
      background-color: $menuHover !important;
      color: $menuHoverFontColor !important;
    }
  }

  .sidebar-container .el-menu-item {
    background-color: $subMenuBg !important;
    color: $letMenuColor !important;
    font-size: $letMenuFontSize;
    &:hover {
      background-color: $menuHover !important;
      color: $menuHoverFontColor !important;
    }
  }
  // .sidebar-container{
  //   &:hover {
  //     background-color: $menuHover !important;
  //     color: $menuHoverFontColor !important;
  //   }
  // }
  // .sidebar-container .el-menu-item,
  // .sidebar-container .el-menu{
  //   background-color: $subMenuBg !important;
  //   &:hover {
  //     background-color: $menuHover !important;
  //     color: $menuHoverFontColor !important;
  //   }
  // }
  .sidebar-container {
    border-right: 1px solid #d8dce5 !important;
    box-shadow: 0 3px 15px 1px rgba(0, 0, 0, 0.45), 0 0 3px 0 rgba(0, 0, 0, 0);
    -webkit-box-shadow: 0 3px 15px 1px rgba(0, 0, 0, 0.45), 0 0 3px 0 rgba(0, 0, 0, 0);
  }



  .el-menu--collapse .el-menu .el-submenu {
    min-width: 180px !important;
  }

  //适配移动端
  .mobile {
    .main-container {
      margin-left: 0px;
    }
    .sidebar-container {
      transition: transform .28s;
      width: 180px !important;
    }
    &.hideSidebar {
      .sidebar-container {
        transition-duration: 0.3s;
        transform: translate3d(-180px, 0, 0);
      }
    }
  }
  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}
